package cn.kgc.springboot01.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: mosin
 * @version: v1.0  2022/12/26
 */
@RestController
@RequestMapping("hello")
public class HelloController {


    @RequestMapping("t1")
    public Map test01(){
        HashMap<String, Object> map = new HashMap<>();
        map.put("code", 200);
        map.put("msg", "hello springboot");
        return  map;
    }

}
